Optimal. Leaf size=142 \[ -\frac {3 a^2 (a+8 b) \tanh ^{-1}(\cosh (c+d x))}{8 d}-\frac {b^2 (3 a+b) \cosh (c+d x)}{d}+\frac {b^2 (a+b) \cosh ^3(c+d x)}{d}-\frac {3 b^3 \cosh ^5(c+d x)}{5 d}+\frac {b^3 \cosh ^7(c+d x)}{7 d}+\frac {3 a^3 \coth (c+d x) \text {csch}(c+d x)}{8 d}-\frac {a^3 \coth (c+d x) \text {csch}^3(c+d x)}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.19, antiderivative size = 142, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {3294, 1171,
1828, 1824, 212} \begin {gather*} -\frac {a^3 \coth (c+d x) \text {csch}^3(c+d x)}{4 d}+\frac {3 a^3 \coth (c+d x) \text {csch}(c+d x)}{8 d}-\frac {3 a^2 (a+8 b) \tanh ^{-1}(\cosh (c+d x))}{8 d}+\frac {b^2 (a+b) \cosh ^3(c+d x)}{d}-\frac {b^2 (3 a+b) \cosh (c+d x)}{d}+\frac {b^3 \cosh ^7(c+d x)}{7 d}-\frac {3 b^3 \cosh ^5(c+d x)}{5 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 1171
Rule 1824
Rule 1828
Rule 3294
Rubi steps
\begin {align*} \int \text {csch}^5(c+d x) \left (a+b \sinh ^4(c+d x)\right )^3 \, dx &=-\frac {\text {Subst}\left (\int \frac {\left (a+b-2 b x^2+b x^4\right )^3}{\left (1-x^2\right )^3} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {a^3 \coth (c+d x) \text {csch}^3(c+d x)}{4 d}+\frac {\text {Subst}\left (\int \frac {-3 a^3-12 a^2 b-12 a b^2-4 b^3+4 b \left (3 a^2+9 a b+5 b^2\right ) x^2-4 b^2 (9 a+10 b) x^4+4 b^2 (3 a+10 b) x^6-20 b^3 x^8+4 b^3 x^{10}}{\left (1-x^2\right )^2} \, dx,x,\cosh (c+d x)\right )}{4 d}\\ &=\frac {3 a^3 \coth (c+d x) \text {csch}(c+d x)}{8 d}-\frac {a^3 \coth (c+d x) \text {csch}^3(c+d x)}{4 d}-\frac {\text {Subst}\left (\int \frac {3 a^3+24 a^2 b+24 a b^2+8 b^3-16 b^2 (3 a+2 b) x^2+24 b^2 (a+2 b) x^4-32 b^3 x^6+8 b^3 x^8}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{8 d}\\ &=\frac {3 a^3 \coth (c+d x) \text {csch}(c+d x)}{8 d}-\frac {a^3 \coth (c+d x) \text {csch}^3(c+d x)}{4 d}-\frac {\text {Subst}\left (\int \left (8 b^2 (3 a+b)-24 b^2 (a+b) x^2+24 b^3 x^4-8 b^3 x^6+\frac {3 \left (a^3+8 a^2 b\right )}{1-x^2}\right ) \, dx,x,\cosh (c+d x)\right )}{8 d}\\ &=-\frac {b^2 (3 a+b) \cosh (c+d x)}{d}+\frac {b^2 (a+b) \cosh ^3(c+d x)}{d}-\frac {3 b^3 \cosh ^5(c+d x)}{5 d}+\frac {b^3 \cosh ^7(c+d x)}{7 d}+\frac {3 a^3 \coth (c+d x) \text {csch}(c+d x)}{8 d}-\frac {a^3 \coth (c+d x) \text {csch}^3(c+d x)}{4 d}-\frac {\left (3 a^2 (a+8 b)\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{8 d}\\ &=-\frac {3 a^2 (a+8 b) \tanh ^{-1}(\cosh (c+d x))}{8 d}-\frac {b^2 (3 a+b) \cosh (c+d x)}{d}+\frac {b^2 (a+b) \cosh ^3(c+d x)}{d}-\frac {3 b^3 \cosh ^5(c+d x)}{5 d}+\frac {b^3 \cosh ^7(c+d x)}{7 d}+\frac {3 a^3 \coth (c+d x) \text {csch}(c+d x)}{8 d}-\frac {a^3 \coth (c+d x) \text {csch}^3(c+d x)}{4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.29, size = 173, normalized size = 1.22 \begin {gather*} \frac {-35 b^2 (144 a+35 b) \cosh (c+d x)+35 b^2 (16 a+7 b) \cosh (3 (c+d x))-49 b^3 \cosh (5 (c+d x))+5 b^3 \cosh (7 (c+d x))+210 a^3 \text {csch}^2\left (\frac {1}{2} (c+d x)\right )-35 a^3 \text {csch}^4\left (\frac {1}{2} (c+d x)\right )+840 a^3 \log \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )+6720 a^2 b \log \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )+210 a^3 \text {sech}^2\left (\frac {1}{2} (c+d x)\right )+35 a^3 \text {sech}^4\left (\frac {1}{2} (c+d x)\right )}{2240 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(335\) vs.
\(2(132)=264\).
time = 1.55, size = 336, normalized size = 2.37
method | result | size |
risch | \(\frac {b^{3} {\mathrm e}^{7 d x +7 c}}{896 d}-\frac {7 \,{\mathrm e}^{5 d x +5 c} b^{3}}{640 d}+\frac {7 \,{\mathrm e}^{3 d x +3 c} b^{3}}{128 d}+\frac {a \,b^{2} {\mathrm e}^{3 d x +3 c}}{8 d}-\frac {9 a \,{\mathrm e}^{d x +c} b^{2}}{8 d}-\frac {35 b^{3} {\mathrm e}^{d x +c}}{128 d}-\frac {9 a \,{\mathrm e}^{-d x -c} b^{2}}{8 d}-\frac {35 b^{3} {\mathrm e}^{-d x -c}}{128 d}+\frac {7 b^{3} {\mathrm e}^{-3 d x -3 c}}{128 d}+\frac {a \,b^{2} {\mathrm e}^{-3 d x -3 c}}{8 d}-\frac {7 \,{\mathrm e}^{-5 d x -5 c} b^{3}}{640 d}+\frac {b^{3} {\mathrm e}^{-7 d x -7 c}}{896 d}+\frac {a^{3} {\mathrm e}^{d x +c} \left (3 \,{\mathrm e}^{6 d x +6 c}-11 \,{\mathrm e}^{4 d x +4 c}-11 \,{\mathrm e}^{2 d x +2 c}+3\right )}{4 d \left ({\mathrm e}^{2 d x +2 c}-1\right )^{4}}+\frac {3 a^{3} \ln \left ({\mathrm e}^{d x +c}-1\right )}{8 d}+\frac {3 a^{2} b \ln \left ({\mathrm e}^{d x +c}-1\right )}{d}-\frac {3 a^{3} \ln \left ({\mathrm e}^{d x +c}+1\right )}{8 d}-\frac {3 a^{2} b \ln \left ({\mathrm e}^{d x +c}+1\right )}{d}\) | \(336\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 340 vs.
\(2 (132) = 264\).
time = 0.28, size = 340, normalized size = 2.39 \begin {gather*} -\frac {1}{4480} \, b^{3} {\left (\frac {{\left (49 \, e^{\left (-2 \, d x - 2 \, c\right )} - 245 \, e^{\left (-4 \, d x - 4 \, c\right )} + 1225 \, e^{\left (-6 \, d x - 6 \, c\right )} - 5\right )} e^{\left (7 \, d x + 7 \, c\right )}}{d} + \frac {1225 \, e^{\left (-d x - c\right )} - 245 \, e^{\left (-3 \, d x - 3 \, c\right )} + 49 \, e^{\left (-5 \, d x - 5 \, c\right )} - 5 \, e^{\left (-7 \, d x - 7 \, c\right )}}{d}\right )} + \frac {1}{8} \, a b^{2} {\left (\frac {e^{\left (3 \, d x + 3 \, c\right )}}{d} - \frac {9 \, e^{\left (d x + c\right )}}{d} - \frac {9 \, e^{\left (-d x - c\right )}}{d} + \frac {e^{\left (-3 \, d x - 3 \, c\right )}}{d}\right )} - \frac {1}{8} \, a^{3} {\left (\frac {3 \, \log \left (e^{\left (-d x - c\right )} + 1\right )}{d} - \frac {3 \, \log \left (e^{\left (-d x - c\right )} - 1\right )}{d} + \frac {2 \, {\left (3 \, e^{\left (-d x - c\right )} - 11 \, e^{\left (-3 \, d x - 3 \, c\right )} - 11 \, e^{\left (-5 \, d x - 5 \, c\right )} + 3 \, e^{\left (-7 \, d x - 7 \, c\right )}\right )}}{d {\left (4 \, e^{\left (-2 \, d x - 2 \, c\right )} - 6 \, e^{\left (-4 \, d x - 4 \, c\right )} + 4 \, e^{\left (-6 \, d x - 6 \, c\right )} - e^{\left (-8 \, d x - 8 \, c\right )} - 1\right )}}\right )} - 3 \, a^{2} b {\left (\frac {\log \left (e^{\left (-d x - c\right )} + 1\right )}{d} - \frac {\log \left (e^{\left (-d x - c\right )} - 1\right )}{d}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 6441 vs.
\(2 (132) = 264\).
time = 0.46, size = 6441, normalized size = 45.36 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 271 vs.
\(2 (132) = 264\).
time = 0.62, size = 271, normalized size = 1.91 \begin {gather*} \frac {5 \, b^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{7} - 84 \, b^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{5} + 560 \, a b^{2} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{3} + 560 \, b^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{3} - 6720 \, a b^{2} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} - 2240 \, b^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} - 840 \, {\left (a^{3} + 8 \, a^{2} b\right )} \log \left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )} + 2\right ) + 840 \, {\left (a^{3} + 8 \, a^{2} b\right )} \log \left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )} - 2\right ) + \frac {1120 \, {\left (3 \, a^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{3} - 20 \, a^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}\right )}}{{\left ({\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{2} - 4\right )}^{2}}}{4480 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.15, size = 421, normalized size = 2.96 \begin {gather*} \frac {b^3\,{\mathrm {e}}^{-7\,c-7\,d\,x}}{896\,d}-\frac {7\,b^3\,{\mathrm {e}}^{-5\,c-5\,d\,x}}{640\,d}-\frac {7\,b^3\,{\mathrm {e}}^{5\,c+5\,d\,x}}{640\,d}-\frac {3\,\mathrm {atan}\left (\frac {{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (a^3\,\sqrt {-d^2}+8\,a^2\,b\,\sqrt {-d^2}\right )}{d\,\sqrt {a^6+16\,a^5\,b+64\,a^4\,b^2}}\right )\,\sqrt {a^6+16\,a^5\,b+64\,a^4\,b^2}}{4\,\sqrt {-d^2}}+\frac {b^3\,{\mathrm {e}}^{7\,c+7\,d\,x}}{896\,d}-\frac {6\,a^3\,{\mathrm {e}}^{c+d\,x}}{d\,\left (3\,{\mathrm {e}}^{2\,c+2\,d\,x}-3\,{\mathrm {e}}^{4\,c+4\,d\,x}+{\mathrm {e}}^{6\,c+6\,d\,x}-1\right )}-\frac {b^2\,{\mathrm {e}}^{c+d\,x}\,\left (144\,a+35\,b\right )}{128\,d}-\frac {4\,a^3\,{\mathrm {e}}^{c+d\,x}}{d\,\left (6\,{\mathrm {e}}^{4\,c+4\,d\,x}-4\,{\mathrm {e}}^{2\,c+2\,d\,x}-4\,{\mathrm {e}}^{6\,c+6\,d\,x}+{\mathrm {e}}^{8\,c+8\,d\,x}+1\right )}+\frac {b^2\,{\mathrm {e}}^{-3\,c-3\,d\,x}\,\left (16\,a+7\,b\right )}{128\,d}+\frac {b^2\,{\mathrm {e}}^{3\,c+3\,d\,x}\,\left (16\,a+7\,b\right )}{128\,d}-\frac {b^2\,{\mathrm {e}}^{-c-d\,x}\,\left (144\,a+35\,b\right )}{128\,d}+\frac {3\,a^3\,{\mathrm {e}}^{c+d\,x}}{4\,d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}-1\right )}-\frac {a^3\,{\mathrm {e}}^{c+d\,x}}{2\,d\,\left ({\mathrm {e}}^{4\,c+4\,d\,x}-2\,{\mathrm {e}}^{2\,c+2\,d\,x}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________